<%@ page pageEncoding="UTF-8"%>
<%@ include file="../common/head.jsp"%>
<section class="header-nav wrap">
	<section class="container">
		<section class="row cleafix">
			<div class="header-login-common pull-right">
				<!-- 登录条-->
				<section class="header-login-rukou clearfix">
					<c:choose>
						<c:when test="${SESSION_BEAN.role=='SimpleUser'}">
							<div id="header_login_name" class="header-login-name pull-left" style="display: block;font-size: 16px">
								<img alt="" src="${ctx}/resource/${SESSION_BEAN.user.photo}" style="border-radius:5em;" width="30px" onerror="javascript:this.src='${ctx}/resource/no.jpg'">
								<a id="header_login_name_text" class="nametext" href="${ctx }/com/toUser.do">${SESSION_BEAN.user.userName }</a>
								<span class="header-login-line">|</span>
								<a id="header_logout_text" class="endtext" href="${ctx }/com/logout.do">退出</a>
							</div>
						</c:when>
						<c:otherwise>
							<div id="header_login_dengluzhuce" class="header-login-dengluzhuce pull-left" style=" font-size: 16px">
								<a id="header-login-btn" class="logintext" data-toggle="modal" href="${ctx}/index.jsp">管理员登录</a>
								<span class="header-login-line">|</span>
								<a id="header-login-btn" class="logintext" data-toggle="modal" href="${ctx}/user.jsp">用户登录</a>
								<span class="header-login-line">|</span>
								<a id="header-register-btn" target="_blank" class="zhucetext" href="${ctx}/reg.jsp" >用户注册</a>
							</div>
						</c:otherwise>
					</c:choose>
				</section>
			</div>
			<ul class="header-nav-list  clearfix">

				<li class="header-nav-list-i pull-left">
					<a href="${ctx}/" >首&nbsp&nbsp页</a>
				</li>
				
                <c:if test="${SESSION_BEAN.role=='SimpleUser'}">
				<li class="header-nav-list-i pull-left">
					<a href="${ctx}/com/list.do">教学课程</a>
				</li>
				<li class="header-nav-list-i pull-left">
					<a href="${ctx}/qiantai/testindex.jsp">模拟考试</a>
				</li>
				
				<li class="header-nav-list-i pull-left">
					<a href="${ctx}/com/cuoti.do">我的错题</a>
				</li>
				</c:if>
			</ul>
		</section>
	</section>
</section>
